//
//  ConfigDefine.h
//  JxCarios
//
//  Created by xcq on 15/1/19.
//  Copyright (c) 2015年 xiongchuanqi. All rights reserved.
//

#ifndef JxCarios_ConfigDefine_h
#define JxCarios_ConfigDefine_h
#import "PublicDefine.h"
#import  "CLProgressHUD.h"
#import "CLMarcoDefine.h"
#import <UIImageView+WebCache.h>
#import "FileIO.h"
#import "UIViewController+Alipay.h"
#import "BMapKit.h"
#import "NSDictionary+GetData.h"

#import "RextExtends.h"


#define UICOLOR_BUTTON  [UIColor colorWithRed:0/255.0 green:160/255.0 blue:233/255.0 alpha:1.0f]
#define UICOLOR_MAKE_RGB(r,g,b) UICOLOR_MAKE_RGB_A(r,g,b,1)
#define UICOLOR_MAKE_RGB_A(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
#define Height 44
#define BTN_COLOR UICOLOR_MAKE_RGB_A(17, 125, 218, 1.0f)

#pragma mark - arc compile flag
#ifndef COMPILE_ARC_MODE
#define COMPILE_ARC_MODE
#endif
#pragma mark - 文件系统相关
#define ResourceDirectory           [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Resource"]
#define DocumentsDirectory          [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES) lastObject]
#define UserDirectory               [DocumentsDirectory stringByAppendingPathComponent:@"Users"]
#define CurrentUserDirectory        [UserDirectory stringByAppendingPathComponent:[Common currentUserName]]
#define CurrentUserInfoDirectory    [CurrentUserDirectory stringByAppendingPathComponent:@"UserInfo"]
#define CurrentMyTaskDirectory      [CurrentUserDirectory stringByAppendingPathComponent:@"MyTask"]
#define SamplePhotoDirectory        [UserDirectory stringByAppendingPathComponent:@"SamplePhoto"]
#define SampleVideoDirectory        [UserDirectory stringByAppendingPathComponent:@"SampleVideo"]
#define LogDebug(v)  NSLog(v)

#pragma mark - 个人设置
#define UserKeyCurrentToken @"token"
#define UserKeyCurrentVB @"vb"
#define UserKeyBaiDay @"bai"
#define UserKeyAutoLogin @"autoLogin"
#define UserKeyCurrentUserInfo @"userInfo"
#define UserKeyCurrentUserName @"userName"
#define UserKeyCurrentUserZh @"zh"

#define UserKeyCurrentAddress @"city"
#define UserKeyCurrentPassword @"Password"
#define UserKeyCurrentPhoneNum @"PhoneNum"
#define UserKeyCurrentPhoto @"Photo"

#define UserkeyCurrentUserId   @"userId"
#define UserkeyLoginStatus     @"loginStatus"

#define HOMEPAGEVIEWSCORLLETIME 3.5

#pragma mark - 系统版本相关
typedef enum ESystemVer {
    ESystemVer6OrLess = 1,
    ESystemVer7,
    ESystemVer8OrGreater,
} ESystemVer;

#pragma mark - 网络状态
#define CURRENNETWORKINGSTATUS @"currenWorking"

#pragma mark - UI相关
#define GLOBAL_BOLD_FONT_NAME               @"HelveticaNeue-Bold"
#define GLOBAL_REGULAR_FONT_NAME            @"HelveticaNeue"

#define GLOBAL_TITLE_FONT                   [UIFont boldSystemFontOfSize:20]
#define GLOBAL_BARTINT_COLOR                [UIColor clearColor]
#define GLOBAL_TINT_COLOR                   [UIColor whiteColor]
#define GLOBAL_TITLE_TEXT_FORE_GROUND_COLOR [UIColor whiteColor]


#define MAPKEY @"mtoS28vF9TbRbm6ZoiINTHrZ"

#define REGISTCELL(nibName,Identifier) [self.tableView registerNib:[UINib nibWithNibName:nibName bundle:nil] forCellReuseIdentifier:Identifier];
#define GETDATASOURCE(source,index,key)  [[source objectAtIndex:index] objectForKey:key]


#endif
